{% extends 'base.html' %}
{% block content %}
<h2>用户流量池列表</h2>
<table class="table">
    <thead>
        <tr>
            <th>池名称</th>
            <th>总流量</th>
            <th>剩余流量</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {% for pool in pools %}
        <tr>
            <td>{{ pool.name }}</td>
            <td>{{ pool.total_flow }}</td>
            <td>{{ pool.remain_flow }}</td>
            <td>{{ pool.remark }}</td>
            <td><a href="/flowpool/{{ pool.id }}/" class="btn btn-info btn-sm">详情</a></td>
        </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}
